package reznic.ga.tracker.objects;

/**
 *
 * @author Reznic Alexandru <reznic.a@gmail.com>
 */
public class RequestData {

    public enum HIT {

        PAGEVIEW("pageview"),
        EVENT("event"),
        TRANSACTION("transaction"),
        ITEM("item"),
        SOCIAL("social"),
        EXCEPTION("exception"),
        TIMING("timing"),
        APPVIEW("appview");
        private final String value;

        private HIT(String value) {
            this.value = value;
        }

        @Override
        public String toString() {
            return value;
        }
    }
    private TrackPageview pageview;
    private TrackEvent event;
    private TrackItem item;
    private TrackMobileApp mobileApp;
    private Visitor visitor;

    public RequestData() {
        visitor = new Visitor();
    }

    /**
     * @return the pageview
     */
    public TrackPageview getPageview() {
        return pageview;
    }

    /**
     * @param pageview the pageview to set
     */
    public void setPageview(TrackPageview pageview) {
        this.pageview = pageview;
    }

    public TrackMobileApp getMobileApp() {
        return mobileApp;
    }

    public void setMobileApp(TrackMobileApp mobileApp) {
        this.mobileApp = mobileApp;
    }

    /**
     * @return the event
     */
    public TrackEvent getEvent() {
        return event;
    }

    /**
     * @param event the event to set
     */
    public void setEvent(TrackEvent event) {
        this.event = event;
    }

    /**
     * @return the item
     */
    public TrackItem getItem() {
        return item;
    }

    /**
     * @param item the item to set
     */
    public void setItem(TrackItem item) {
        this.item = item;
    }

    /**
     * @return the visitor
     */
    public Visitor getVisitor() {
        return visitor;
    }

    /**
     * @param visitor the visitor to set
     */
    public void setVisitor(Visitor visitor) {
        this.visitor = visitor;
    }
}
